<template>
    <div slot="header" class="">
        <div class="topfix">
            <div class="fix_input">
                <div class="t">检索条件：</div><el-input v-model="input1" placeholder="请输入内容"></el-input>
            </div>
            <div class="fix_input">
                <div class="t">检索条件：</div><el-input v-model="input2" placeholder="请输入内容"></el-input>
            </div>
            <div class="fix_input">
                <div class="t">检索条件：</div><el-input v-model="input3" placeholder="请输入内容"></el-input>
            </div>

            <div class="button">
                <el-button>重置</el-button>
                <el-button type="info">查询</el-button>
            </div>
        </div>
        <el-card class="box-card">
            <div slot="header" class="clearfix"
                style="display: flex;justify-content: space-between; align-items: center;">
                <span>库房列表</span>
                <el-button style="float: right;" type="info" >新增</el-button>
            </div>
            <div>
                <el-table :data="tableData" style="width: 100%">
                    <el-table-column type="selection" width="42"></el-table-column>
                    <el-table-column type="index" label="序号" width="100px"></el-table-column>
                    <el-table-column prop="name" label="库房名称" width="200">
                    </el-table-column>
                    <el-table-column prop="dj" label="库房等级" width="180">
                    </el-table-column>
                    <el-table-column prop="cg" label="是否采购" width="180">
                    </el-table-column>
                    <el-table-column prop="fu" label="是否服务库房" width="180">
                    </el-table-column>
                    <el-table-column prop="hc" label="是否管理高值耗材" width="180">
                    </el-table-column>
                    <el-table-column label="操作">
                        <template slot-scope="scope">
                            <el-button type="info">编辑</el-button>
                            <el-button type="info" plain>删除</el-button>
                        </template>
                    </el-table-column>
                </el-table>
                <div class="block">
                    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
                        :current-page="currentPage4" :page-sizes="[10, 20, 30, 40]" :page-size="100"
                        layout="total, sizes, prev, pager, next, jumper" :total="4">
                    </el-pagination>
                </div>
            </div>
        </el-card>
    </div>

</template>
<script>

export default {
    data() {
        return {
            input1: '',
            input2: '',
            input3: '',
            tableData: [{
                name: '一号库房',
                dj: '一级库房',
                cg: '是',
                fu: '是',
                hc: '是'
            }]
        }
    },
    methods: {
        tableRowClassName({ row, rowIndex }) {
            if (rowIndex === 1) {
                return 'warning-row';
            } else if (rowIndex === 3) {
                return 'success-row';
            }
            return '';
        }
    },
    
}
</script>
<style lang="scss" scoped>
.topfix {
    height: 80px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    margin-bottom: 20px;

    .fix_input {
        display: flex;
        align-items: center;

        .t {
            width: 80px;
            font-size: 12px;
            font-weight: bold;
        }
    }

    .button {
        display: flex;
    }
}

.block {
    display: flex;
    justify-content: right;
    padding-top: 20px;
}
</style>